import request from "./request.js";

//登录
export function login(data) {
  return request({
    method: "post",
    url: "/login",
    data
  });
}

//获取左侧菜单
export function getMenus(data) {
  return request({
    method: "get",
    url: "/menus",
    params: data
  });
}

//获取角色列表
export function getUsers(data) {
  return request({
    method: "get",
    url: "/users",
    params: data
  });
}

//修改用户状态
export function UserState(data) {
  return request({
    method: "put",
    url: "users/+data.uId/state/+data.type",
    data
  });
}
